package org.dromara.exam.domain.vo;

import lombok.Data;
import org.dromara.exam.domain.dto.ProjectSetting;
import org.dromara.exam.domain.dto.TemplateSchema;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;

/**
 * 答卷视图对象
 * @author :xiyin321
 * @since : 2024/5/25 9:51
 */
@Data
public class PublicPaperVo implements Serializable {
    private Long id;

    private TemplateSchema paperContentObj;

    private String status;

    private ProjectSetting settingObj;

    private String projectName;

    private String projectType;

    private Boolean passwordRequired;

    private Boolean loginRequired;

    private Date createAt;

    private String submittedHtml;

    private String answerId;

    LinkedHashMap<String, Object> answer;

    LinkedHashMap<String, Object> tempAnswer;

    private Boolean isAuthenticated;

    private AnswerExamInfo examInfo;
    @Data
    public static class AnswerExamInfo {

        /**
         * 问题分值
         */
        private LinkedHashMap<String, Double> questionScore;

    }
}
